package com.huawei.M01.iterator;

import java.lang.reflect.Field;

public class Test01 {
    private String name = "SAS";

    public void sayHello(){
        System.out.println("Hello");
    }

    public void sayGoodBye(){
        System.out.println("GoodGye");
    }

    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        Test01 test01 = Test01.class.newInstance();
        

        Field[] declaredFields = Test01.class.getDeclaredFields();
        for (Field field : declaredFields){
            System.out.println(field.get(test01));
        }


    }
}
